package com.good.shopping.auth.fegin;

import com.good.common.base.ServiceConstant;
import com.good.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用第三方接口
 * @author shengren.yan
 */
@FeignClient(value = ServiceConstant.SERVICE_THIRDPARTY_NAME)
public interface ThirdPartyFeignService {

    // 发送短信接口
    @GetMapping("/sms/sendCode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
